<?php
class Australian_Validate_ConfirmPassword extends Zend_Validate_Abstract{
	
	const NOT_EQUAL = 'notEqual';
	
	protected $_password;
	
	protected $_messageTemplates = array(
			self::NOT_EQUAL => "Password is not equal confirm password",
	);
	
	public function __construct($password){
		$this->_password = $password;
	}
	
	public function isValid($value){
		if(strcmp($value, $this->_password) != 0){
			$this->_error('notEqual');
			
			return false;
		}
		
		return true;
	}
}